package com.dingreading.cloud.subject.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2024-08-01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("staff")
public class Staff implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    private String department;

    private Integer enabled;

    private String encodedPwd;

    private String username;

    private String fullName;

    private String lastLoginTime;

    private String nickName;

    private String priPhone;

    private String pubPhone;

    private String pwdSalt;

    private Integer role;

    private Integer storeId;

    private String storeName;

    private String uid;

    private String token;

    private String authApps;

    private String corpUid;

    private String currentStoreUid;

    private Integer isHeadquarterStaff;

    private Integer isStoreStaff;

    /**
     * 员工活动主目录权限
     */
    private String subjectType;
}
